package org.fastsyncer.common.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Mapping implements Serializable{

	private static final long serialVersionUID = 7337210896115791239L;

	// 数据源配置
	private Object config;

	// 驱动类型
	private String connector;

	// 同步字段类型,例如：[{name=ID, type=4}, {name=NAME, type=12}]
	private List<HashMap<String, Object>> fileds;

	// 执行命令
	private Map<String, String> excuteCommond = new HashMap<String, String>();

	// 总数据量
	private Integer rowCount;

	public Mapping() {
		super();
	}

	public Mapping(Object config, String connector, List<HashMap<String, Object>> fileds, Integer rowCount) {
		super();
		this.config = config;
		this.connector = connector;
		this.fileds = fileds;
		this.rowCount = rowCount;
	}

	public Object getConfig() {
		return config;
	}

	public void setConfig(Object config) {
		this.config = config;
	}

	public String getConnector() {
		return connector;
	}

	public void setConnector(String connector) {
		this.connector = connector;
	}

	public List<HashMap<String, Object>> getFileds() {
		return fileds;
	}

	public void setFileds(List<HashMap<String, Object>> fileds) {
		this.fileds = fileds;
	}

	public Map<String, String> getExcuteCommond() {
		return excuteCommond;
	}

	public void setExcuteCommond(Map<String, String> excuteCommond) {
		this.excuteCommond = excuteCommond;
	}

	public Integer getRowCount() {
		return rowCount;
	}

	public void setRowCount(Integer rowCount) {
		this.rowCount = rowCount;
	}

}
